package com.xian.ai.code.utils;

import org.springframework.util.DigestUtils;

/**
 * @ClassName SafeUtitl
 * @Description TODO
 * @Author Zhangxn
 * @Version 1.0
 */
public class SafeUtitl {
    static public String getEncryptPassword(String userPassword) {
        // 盐值，混淆密码
        final String SALT = "xiannan";
        return DigestUtils.md5DigestAsHex((SALT + userPassword).getBytes());
    }
}
